const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  avatar: state => state.user.avatar,
  name: state => state.user.userInfo.username
  // getters 都是一些函数, 默认可以得到 state 对象, 根据返回值决定了这个 getters 显示什么
}
export default getters
